package com.supplychainapi.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel("pc接口返回数据model")
public class PcResult {

    @ApiModelProperty("具体数据")
    PcList list;
    @ApiModelProperty("分类树")
    List<PcTree> tree;

    public static final <TT> PcResult buildResult(PcList list,List<PcTree> tree) {
        return new PcResult(list,tree);
    }

    public PcResult() {
    }

    public PcResult(PcList list, List<PcTree> tree) {
        this.list = list;
        this.tree = tree;
    }

    public PcList getList() {
        return list;
    }

    public void setList(PcList list) {
        this.list = list;
    }

    public List<PcTree> getTree() {
        return tree;
    }

    public void setTree(List<PcTree> tree) {
        this.tree = tree;
    }
}
